package com.leeafei.study.springboot.dto;

public class Goods {
    // 名称
    private String name;
    // 价格
    private Double price;
    // 库存
    private Integer stock;
    // 是否打折
    private Boolean discount;
    // 规格
    private Spec spec;

    public Spec getSpec() {
        return spec;
    }

    public void setSpec(Spec spec) {
        this.spec = spec;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public Boolean getDiscount() {
        return discount;
    }

    public void setDiscount(Boolean discount) {
        this.discount = discount;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "name='" + name + '\'' +
                ", price=" + price +
                ", stock=" + stock +
                ", discount=" + discount +
                ", spec=" + spec +
                '}';
    }
}
